FROM nginx:1.25.0-bullseye

COPY nginx.conf /etc/nginx/nginx.conf

RUN mkdir -p /etc/nginx/sites-available
COPY coreapi.test.conf /etc/nginx/sites-available
COPY corebg.test.conf /etc/nginx/sites-available

RUN mkdir -p /etc/nginx/sites-enabled
RUN ln -s /etc/nginx/sites-available/coreapi.test.conf /etc/nginx/sites-enabled
RUN ln -s /etc/nginx/sites-available/corebg.test.conf /etc/nginx/sites-enabled

EXPOSE 81 82